#ifndef _PLAY_BACK_DIALOG_H_
#define _PLAY_BACK_DIALOG_H_

#include <QtWidgets/QDialog>
#include "a3h_playback_by_time.h"
#include "GeneratedFiles/ui_play_back_dialog.h"

class my_slider;
class QToolButton;
class QFileDialog;
class QLabel;

class play_back_dialog : public QDialog
{
    Q_OBJECT

public:
    play_back_dialog(QWidget * parent = NULL);
    ~play_back_dialog();

public:
    my_slider *get_slider();
    const a3h_playback_bytime &get_player(){return a3h_player;}

public slots:
    void play();
    void stop();
    void speed_up();
    void speed_down();

private:
    void build_file_dialog();
    void set_valid(bool is_valid);
    void show_current_speed(double speed);
private:
    Ui::play_back_ui_dialog ui;
    a3h_playback_bytime a3h_player;

    QFileDialog *file_dialog;
};

#endif